package com.woniuxy.microstockserver.service.impl;

import com.woniuxy.microstockserver.bean.EnterStockGoodsDetailBean;
import com.woniuxy.microstockserver.mapper.EnterStockGoodsDetailMapper;
import com.woniuxy.microstockserver.service.IEnterStockGoodsDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 入库单商品详情
 */
@Service
public class EnterStockGoodsDetailServiceImpl implements IEnterStockGoodsDetailService {

    @Resource
    private EnterStockGoodsDetailMapper enterStockGoodsDetailMapper;

    @Override
    public int saveEnterStockGoodsDetailMapper(Long esId, List<EnterStockGoodsDetailBean> enterStockGoodsDetailBeans) {
         return enterStockGoodsDetailMapper.saveEnterStockGoodsDetailMapper(esId,enterStockGoodsDetailBeans);
    }
    @Override
    public List<EnterStockGoodsDetailBean> findEnterStockAndGoodsDetail(Long id) {
        return enterStockGoodsDetailMapper.findEnterStockAndGoodsDetail(id);
    }
    @Override
    public void deleteByEsId(Long id) {
        enterStockGoodsDetailMapper.deleteByEsId(id);
    }
}
